Skip to content

Verify request limits and Turnstile behavior through runtime boundaries - #23

Open
adewale wants to merge 6 commits into
mainfrom
claude/test-audit-campaign
Open

adewale wants to merge 6 commits into
mainfrom
claude/test-audit-campaign

Conversation

@adewale

@adewale adewale commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Replace source-string checks for request-size limits with executed bridge and Worker requests, covering declared and streamed oversize bodies, exact boundaries and accepted requests. Remove the Turnstile keyword checklist in favor of the existing executed clearance, bypass, session, verification-failure and cookie contracts; retain actual CSP assertions.

Updated with current main's dependency and action-pin changes. Validation: 234 Python tests and Ruff pass locally. Hosted Verify covers the deployed Worker/browser boundaries.

claude added 2 commits October 3, 2026 01:34
The bridge-side cap is already exercised behaviourally by
test_process_request_rejects_oversize_body_before_running_app. The only
contract unique to the source-text test was that main.py hands the cap to
the bridge; the grep passed as long as any one of the three asgi.fetch call
sites still had it. Drive all three (cached GET miss, uncacheable GET, POST)
through Default.fetch and assert each passes max_body_bytes=100_000, the
limit the user-facing "over 100 kB" message promises.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019boFsNWgtPe2zZQxPFRRWp
…y bridge.fetch

Review follow-ups: compare against MAX_SUBMITTED_BODY_BYTES rather than a
literal (the contract is that the two caps agree), check the call count per
subtest so a skipped call site cannot reuse the previous call's kwargs, and
cover worker_asgi_bridge.fetch forwarding max_body_bytes to process_request,
which no test (old or new) exercised.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019boFsNWgtPe2zZQxPFRRWp
Clean merge: #19 touched figures, theme tokens and figure-content
checks; this branch only touches the request-body-cap tests. Generated
files were rebuilt with make build and check-social-cards; nothing
drifted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012eisRQmQvg4TphwztxhQGJ
@adewale adewale changed the title Test audit: test the request-body cap through Default.fetch and bridge.fetch, not source text Replace body-cap source checks with tests through both request boundaries Nov 1, 2026
@adewale adewale changed the title Replace body-cap source checks with tests through both request boundaries Verify request limits and Turnstile behavior through runtime boundaries Nov 7, 2026
@adewale
adewale marked this pull request as ready for review November 7, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants